Fix status bar duplication after vertical resize#1860
Conversation
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
Hello @gnodet , can you please take a look at this and let me know what you think ! |
Co-authored-by: Abdelilah AIT HAMOU <abdelilah.ait.hamou@oracle.com>
Co-authored-by: Abdelilah AIT HAMOU <abdelilah.ait.hamou@oracle.com>



Summary
Fix stale status bar rows after vertical terminal resize.
When the terminal height shrinks, some terminal emulators keep the old bottom status line just above the new status area. JLine then redraws the status bar at the new bottom row, which leaves duplicated status bar rows in the main terminal area.
This change clears one status-height band above the new status area during
Status.resize(...)when the terminal height shrinks.before :

after :

Reproduction
A small app using
StatuswithLineReader.readLine()can reproduce the issue: